package com.hs.mpdemo_01.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
/**
* 
* @TableName t_product
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_product")
public class Product implements Serializable {
    private static final long serialVersionUID = -285513323957342456L;
    @TableId(type = IdType.AUTO)
    private Long id;
    private String name;
    private Integer price;
    @Version
    private Integer version;
}
